#define _X86_ 
#include <Ntifs.h>
#include <ntddk.h>
#include "KernelProtect.h"
#include "SystemCall.h"

#pragma alloc_text(NONPAGE, NOIMLE)





void FirstCall()
{

}


int __cdecl  NOIMLE(pt_regs regs)
{
	UINT callID;
    KIRQL currentIrql;
    KIRQL currentIrql2;
    KIRQL currentIrql3;
    KIRQL currentIrql4;
    ULONG processNumber;
    HANDLE threadID;
    ULONG* l = regs.ebx;
    *l = 1234;
    callID = regs.ebx;
    currentIrql = KeGetCurrentIrql();
    currentIrql2 = KeGetCurrentIrql();
    currentIrql3 = KeGetCurrentIrql();
    currentIrql4 = KeGetCurrentIrql();
    processNumber = KeGetCurrentProcessorNumber();
    threadID = PsGetCurrentThreadId();
	DbgPrint(("[ring0]callID = 0x%x\n",callID));
	return callID;
}